home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Games Collection 1 / software vault.zip / software vault / CDR10 / YICN23.ZIP / BEET / SB1MISC.CPP < prev    next >
C/C++ Source or Header  |  1993-02-28  |  2KB  |  56 lines

  1. #include "xlib.h"
  2. #include "sb1misc.h"
  3.  
  4. extern yakLib sb1Lib;
  5. extern grumPlayer player1;
  6.  
  7. void loadIcons(void)
  8. {
  9.   factor::loadFactor(0, "", "swgrum", "sgrumjug", "segrum", "lgrumjug", "cgrumjug",
  10.             "grumjug", "nwgrum", "ngrumjug", "negrum", &sb1Lib);
  11.   factor::loadFactor(1, "", "", "", "", "", "wclub", "", "","","", &sb1Lib);
  12.   factor::loadFactor(2, "", "", "", "", "", "blob", "", "", "", "", &sb1Lib);
  13. }
  14.  
  15. void drawBorder(void)
  16. {
  17.   icon * currentIcon = NULL;
  18.   currentIcon = new icon;
  19.   currentIcon->load("nwbord.yak", icon::normal, &sb1Lib);
  20.   currentIcon->show(0,0,SplitScrnOffs);
  21.   currentIcon->load("nebord.yak", icon::normal, &sb1Lib);
  22.   currentIcon->show(303,0, SplitScrnOffs);
  23.   currentIcon->load("swbord.yak", icon::normal, &sb1Lib);
  24.   currentIcon->show(0, 32, SplitScrnOffs);
  25.   currentIcon->load("sebord.yak", icon::normal, &sb1Lib);
  26.   currentIcon->show(303, 32, SplitScrnOffs);
  27.   currentIcon->load("hbord.yak", icon::normal, &sb1Lib);
  28.   for(int counter = 0; counter < 18; ++counter)
  29.   {
  30.     currentIcon->show(15 + (counter*16), 0, SplitScrnOffs);
  31.     currentIcon->show(15 + (counter*16), 32, SplitScrnOffs);
  32.   }
  33.   currentIcon->load("vbord.yak", icon::normal, &sb1Lib);
  34.   currentIcon->show(0, 16, SplitScrnOffs);
  35.   currentIcon->show(303, 16, SplitScrnOffs);
  36.   delete currentIcon;
  37. }
  38.  
  39. grumPlayer::grumPlayer(void) : player()
  40. {
  41.   missileType = CLUB;
  42.   moveIncrement = 5;
  43.   jumpIncrement = 12;
  44.   numMissiles = 3;
  45.   hitPoints = 24;
  46.   gravity=1;
  47. };
  48.  
  49. missile * grumPlayer::missileGenerator(int missileType)
  50. {
  51.   switch (missileType)
  52.   {
  53.     case CLUB: return new club(this);
  54.   }
  55.   return NULL;
  56. }